@import url("../../[branding]_components/dealerInteractiveMap.css");

/* MINI tab � removes uppercase fallback (brand CSS sets --dim-tab-text-transform) */
.dealer-map__tab {
    text-transform: none;
}

/* MINI active tab � brand font and weight */
.dealer-map__tab.is-active {
    font-family: var(--dimap-tab-active-font-family);
    font-weight: var(--dimap-tab-active-font-weight);
    padding-top: 16px;
}

.dealer-map__toolbar {
  background: var(--brand-white);
}

/* MINI select no uppercase */
.dealer-map__select {
    text-transform: none;
    border: var(--dim-select-border-bottom);
    width: 18vw;
}

/* MINI helper � margin-right and margin-left auto */
.dealer-map__helper {
    margin-left: auto;
    margin-right: auto;
}

/* MINI search-clear � brand background color */
.dealer-map__search-clear {
    display: none;
    background: var(--dim-search-clear-color);
}

/* MINI search clear svg � brand stroke color */
.dealer-map__search-clear svg {
    stroke: var(--dim-search-icon-color);
}

/* MINI outline CTA hover � brand var border */
.dealer-map-card__cta--outline:hover {
    border-color: var(--dim-cta-outline-background-color-hover);
}

.dealer-map__helper {
    margin-right: 0;
}

.dealer-map__tabs {
    padding: 0 200px;
    width: 100%;
}

/* Subaru — buttons fill the full width of dealer-map__tabs__border at all breakpoints */
.dealer-map__tabs__border {
    width: 100%;
    display: flex;
}

.dealer-map__tab {
    flex: 1;
    width: auto;
}

.dealer-map__search {
    border-bottom: 1px solid var(--gray-dark-5);
    order: 2;
}

.dealer-map__km-row {
    order: 1;
}

.dealer-map__control-group,
.dealer-map__search {
    flex: 1 1 0;
    width: auto;
}

.dealer-map-card__icon {
    stroke-width: 1;
    width: 28px;
    height: 28px;
}

.dealer-map-card__address,
.dealer-map-card__phone,
.dealer-map-card__email,
.dealer-map-card__hours-label {
    display: flex;
    align-items: center;
}

/* MINI � font-size reductions at wide desktop */
@media (max-width: 1366px) {
    .dealer-map-card__title {
        font-size: 24px;
    }

    .dealer-map-card__address,
    .dealer-map-card__phone,
    .dealer-map-card__email,
    .dealer-map-card__hours-label,
    .dealer-map-card__hours-detail {
        font-size: 18px;
    }

    .dealer-map-card__hours-row {
        font-size: 18px;
    }
    .dealer-map__controls {
        padding: 30px 14px;
        width: 100%;
    }
    .dealer-map__tabs {
        padding: 0 14px;
    }
    .dealer-map-card__cta {
        min-width: 193px;
    }
    .dealer-map__select {
        width: 24vw;
    }
}

/* MINI � tablet layout adjustments and font-size reductions */
@media (max-width: 768px) {
    .dealer-map__tabs {
        width: 100%;
    }

    .dealer-map__tabs__border {
        width: 100%;
        display: flex;
    }

    .dealer-map__tab {
        flex: 1;
        width: auto;
        font-size: 16px;
        padding-bottom: 0;
    }

    .dealer-map-card__title {
        font-size: 18px;
        text-align: center;
    }

    .dealer-map-card__address,
    .dealer-map-card__phone,
    .dealer-map-card__email,
    .dealer-map-card__hours-label,
    .dealer-map-card__hours-detail {
        font-size: 16px;
    }

    .dealer-map-card__hours-detail {
        margin-left: 40px;
    }

    .dealer-map-card__hours-row {
        font-size: 16px;
    }

    .dealer-map__map-container {
        width: 100vw;
        height: 202px;
    }

    .dealer-map__controls {
        padding: 30px 14px;
        flex-direction: row;
        align-items: start;
    }

    .dealer-map-card__footer {
        gap: 18px;
    }

    .dealer-map-card__cta {
        width: 475px;
        margin: 0 auto;
        height: 45px;
    }

    .dealer-map__panel {
        background: var(--brand-white);
    }

    
    .dealer-map-card__icon {
        stroke-width: 1;
        width: 24px;
        height: 24px;
    }
    .dealer-map__select {
        width: 50vw;
    }
}

/* MINI � mobile map height and font-size reductions */
@media (max-width: 576px) {
    .dealer-map-card__title {
        font-size: 18px;
        text-align: center;
    }

    .dealer-map-card__address,
    .dealer-map-card__phone,
    .dealer-map-card__email,
    .dealer-map-card__hours-label,
    .dealer-map-card__hours-detail {
        font-size: 16px;
    }

    .dealer-map-card__hours-row {
        font-size: 16px;
    }

    .dealer-map__map-container {
        height: 200px;
    }
    .dealer-map__controls {
        flex-direction: column;
    }

    .dealer-map__control-group,
    .dealer-map__search {
        width: 100%;
    }
    .dealer-map__tabs {
        padding: 0 14px;
    }
    .dealer-map__select {
        width: 92vw;
    }
}
